(function() {

	var Http = {};

	var server = "http://localhost:7001/space/http/";

	/**
	 * param暂时为字符串
	 * [post description]
	 * @param  {[String]} url   [description]
	 * @param  {[Object]} param [description]
	 * @param  {[Function]} _call [description]
	 */
	Http.post = function(url, param, _call) {

		param = param || "";
		_call = _call || function(){};

		var serverParam = {
			url : url,
			param : param
		};

		$.post(server + "post", serverParam, function(response) {
			_call(response);
		});

	};

	/**
	 * get 请求
	 */
	Http.get = function(url, param, _call) {

		param = param || "";
		_call = _call || function(){};

		var serverParam = {
			url : url,
			param : param
		};

		$.post(server + "get", serverParam, function(response) {
			_call(response);
		});

	};

	window.Http = Http;

}());